home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Misc / IconBounce / Source / BounceView.h < prev    next >
Encoding:
Text File  |  1995-06-12  |  552 b   |  26 lines

  1.  
  2. /* Generated by Interface Builder */
  3.  
  4. #import <appkit/View.h>
  5.  
  6. // the number of edges,
  7. #define numEdges 10
  8. // and the maximum velocity of a point in either the x or y direction.
  9. #define maxVel 4
  10.  
  11. @interface BounceView:View
  12. {
  13.     short pos[ numEdges][ 4];    // position of each edge. (x1, y1, x2, y2).
  14.     short vel[ 4];        // current point  velocities (for the leading edge)
  15.     id animator;        // to keep us moving . . .
  16. }
  17.  
  18. + newFrame:(NXRect *)r;
  19. - setAnimator:anObject;
  20. - animate:sender;
  21. - animator;
  22. - drawSelf:(NXRect *)r :(int)count;
  23. - moveLine;
  24.  
  25. @end
  26.